---
title: "SQL-VP-034: Retrieve the group user's book of business (SQL Server)"
summary: Retrieves the list of policies visible to a group user via a SQL Server stored procedure.
status: draft
owner: SAIF Claims BOF team
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-VP-034 Retrieve the group user's book of business (SQL Server)

Used by `clsPolicySecurity.GetPolicyListforGroup()`, one of the per-user-type "book of business" list
builders behind the `PolicyList` property.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-VP-034 |
| **Operation type** | Read |
| **Execution method** | Stored procedure (via `SqlHelper`) |
| **Database** | SQL Server |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicySecurity` |
| **Criteria property** | `GetPolicyListforGroup()` (ad hoc method) |
| **Lifecycle method** | ad hoc method |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `@GroupKeyCode` | Input | String | N/A | Group key code used as a filter parameter. |
| `@SpecificChapterCode` | Input | String | N/A | Specific chapter code filter (regex-style). |
| `@rptDate` | Input | Date | N/A | Reporting date used to scope the policy list. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| *(not directly visible — encapsulated in procedure body)* | SELECT | N/A |

## Sample SQL

```sql
EXEC cp_claimprofile_get_group_policy_list
  @GroupKeyCode        = :GroupKeyCode,
  @SpecificChapterCode = :SpecificChapterCode,
  @rptDate             = :rptDate
```

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- `SAIF.Business.View.Policy\clsPolicySecurity.vb`
